import Vue from 'vue'
import App from './App.vue'
import router from './routers'
import store from "./store"
import axios from "axios"
import { Button, Select,Loading } from 'element-ui';
Vue.config.productionTip = false
 Vue.use(Button)
 Vue.use(Select)
 Vue.use(Loading.directive)

axios.interceptors.response.use(function (res) {
  return res.data;
  })

  Vue.prototype.$axios=axios
  Vue.filter("short",function (title) {
    if(title.indexOf("/")>-1){
        return title.split('/')[0]
    }else{
      return title
    }
    })


new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
